package cc.uncarbon.module.custom.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑数据表注释 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminBlinkInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 10, message = "【名称】最长10位")
    @NotBlank(message = "名称不能为空")
    private String name;

    @Schema(description = "跳转地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 255, message = "【跳转地址】最长255位")
    @NotBlank(message = "跳转地址不能为空")
    private String path;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 255, message = "【图片地址】最长255位")
    @NotBlank(message = "图片地址不能为空")
    private String url;

    @Schema(description = "状态（0禁用，1正常")
    private EnabledStatusEnum status;

    @Schema(description = "店铺id")
    private Long storeId;

}
